package com.ruoyi.student.service.impl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.student.domain.XsXsjbsj;
import com.ruoyi.student.domain.vo.StudentEducationalRemoteListSearchVo;
import com.ruoyi.student.mapper.StudentEducationalRemoteMapper;
import com.ruoyi.student.service.IStudentEducationalRemoteService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class StudentEducationalRemoteServiceImpl implements IStudentEducationalRemoteService {


    @Resource
    private StudentEducationalRemoteMapper studentEducationalRemoteMapper;


    /**
     * 获取远程教务库列表
     *
     * @param vo
     * @return
     */
    public List<XsXsjbsj> selectStudentEducationalRemoteList(StudentEducationalRemoteListSearchVo vo) {
        return studentEducationalRemoteMapper.selectStudentEducationalRemoteList(vo);
    }

    /**
     * 获取远程教务库列表的数量
     *
     * @param vo
     * @return
     */
    public Long selectStudentEducationalRemoteCount(StudentEducationalRemoteListSearchVo vo) {
        return studentEducationalRemoteMapper.selectStudentEducationalRemoteCount(vo);
    }


    /**
     * 筛选出学籍在册的学生
     *
     * @return
     */
    public List<XsXsjbsj> selectStudyStudentList() {
        return studentEducationalRemoteMapper.selectStudyStudentList();
    }
}
